package esi.ws;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlType;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XmlType(name = "searchMoviesResponse1")
@XStreamAlias("catalog_titles")
public class SearchMoviesResponse {
    @XStreamAlias("number_of_results")
    private int results;
    @XStreamAlias("start_index")
    private int startIndex;
    @XStreamAlias("results_per_page")
    private int resultsPerPage;
    @XStreamImplicit(itemFieldName = "link")
    private ArrayList<Link> link;
    @XStreamAlias("url_template")
    private String urlTemplate;

    @XStreamImplicit(itemFieldName = "catalog_title")
    private ArrayList<MovieResponse> movies;

    public int getResults() {
        return results;
    }

    public void setResults(int results) {
        this.results = results;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getResultsPerPage() {
        return resultsPerPage;
    }

    public void setResultsPerPage(int resultsPerPage) {
        this.resultsPerPage = resultsPerPage;
    }

    public ArrayList<MovieResponse> getMovies() {
        return movies;
    }

    public void setMovies(ArrayList<MovieResponse> movies) {
        this.movies = movies;
    }

    public ArrayList<Link> getLink() {
        return link;
    }

    public void setLink(ArrayList<Link> link) {
        this.link = link;
    }

    public String getUrlTemplate() {
        return urlTemplate;
    }

    public void setUrlTemplate(String urlTemplate) {
        this.urlTemplate = urlTemplate;
    }

}
